package com.lagou.boot;

import com.lagou.client.RPCConsumer;
import com.lagou.service.IUserService;

/**
 * @author xsl
 * @date 2021/3/13 15:45
 * @Description: ClientBoot
 */
public class ClientBoot {
    public static void main(String[] args) throws InterruptedException {
        IUserService userService = (IUserService)RPCConsumer.createProxy(IUserService.class, "sayHello",new Class[]{String.class});
        while (true){
           userService.sayHello("are you ok !!!");
           Thread.sleep(2000);
        }
    }
}
